package com.jet.merchant.service;

import com.jet.core.model.vo.PageVo;
import com.jet.merchant.domain.dto.ResourceDto;
import com.jet.merchant.domain.entity.ClerkResource;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jet.merchant.domain.query.ResourcePageQuery;
import com.jet.merchant.domain.vo.ResourceVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-02-25
 */
public interface IClerkResourceService extends IService<ClerkResource> {


    void save(ResourceDto dto);

    void edit(String id, ResourceDto dto);

    List<ResourceVo> findAllByIds(List<String> ids);

    List<ResourceVo> findAllByRoleId(String roleId);

    List<ResourceVo> findAll();

    List<ResourceVo> findAllByAccountId(String accountId);

    ResourceVo info(String id);

    PageVo<ResourceVo> page(ResourcePageQuery query);

    List<ResourceVo> findAllByPid(String pid);

    int pathValidate(long merchantNo, String accountId, String apiPath);
}
